import React, { useContext } from 'react';
import { nameContext } from './03-UseContext';
export default function Child1 (props) {
    // console.log(props);
    const { count } = useContext(nameContext);
    return (
        <div>
            {count}
            <button onClick={() => props.onClick(count)}>click</button>
        </div>
    );
}
